package com.qipay.holiday.service;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.IOException;
import java.util.Date;

/**
 * Creator: Yao
 * Date:    2017/12/13
 * For:
 * Other:
 */
public interface HolidayService {

    /***
     * 导入节假日
     * @param filePath
     */
    void upload(String filePath) throws IOException;

    /***
     * 导出初始节假日信息
     * @param year
     * @return
     */
    HSSFWorkbook export(String year) throws IOException;

    /***
     * 判断指定日期是否为节假日
     * @param date
     * @return
     */
    boolean check(Date date);

}
